package com.huyanqi.front.rest;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 
 * <p>Title: BaseRespObj.java</p>
 * 
 * <p>Description: 返回资源基类，提供枚举类型，记录返回资源状态</p>
 * 
 * <p>Datetime: 2011-12-25 下午11:35:47</p>
 *
 * @company 成都映潮科技有限公司
 * 
 * @author <a href="mailto:liwei@sunsharp.cn">p.k.ripper</a>
 *
 */
@XmlRootElement(name = "base")
@XmlAccessorType(XmlAccessType.FIELD)
public class BaseRespObj implements Serializable {
	private static final long serialVersionUID = -3197616622643404121L;

	@XmlElement(name = "infocode")
	private RespCode respCode;

	@XmlElement(name = "secretnum")
	private Long secretnum;
	
	public BaseRespObj() {
		this.setCode(RespCode.NODEFINE);
	}

	public void setCode(RespCode retdCodeType) {
		this.respCode = retdCodeType;
	}

	public int getCode() {
		return respCode.getCode();
	}

	public Long getSecretnum() {
		return secretnum;
	}

	public void setSecretnum(Long secretnum) {
		this.secretnum = secretnum;
	}
	
	
}
